package org.jeecg.modules.contract.service;

import freemarker.template.TemplateException;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.contract.entity.ContractManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;
import java.util.Map;

/**
 * @Description: 合同管理
 * @Author: jeecg-boot
 * @Date:   2019-07-29
 * @Version: V1.0
 */
public interface IContractManagementService extends IService<ContractManagement> {
    /**
     * 上传文件
     * @param fileMap
     * @return
     */
    Result getFileUrl(Map<String,MultipartFile> fileMap);

    /**
     * 转换Work文档
     * @param byId
     * @param req
     * @return
     */
    File transitionWord(ContractManagement byId, HttpServletRequest req) throws IOException, TemplateException;
}
